// 权限相关的接口
import request from '@/utils/request'

// 获取-权限点列表
export const getPermissionListRequest = () => request.get('/sys/permission')

// 新增权限
export const addPermissionRequest = (data) => request.post('/sys/permission', data)

// 更新权限
export const updatePermissionRequest = (data) => request.put(`/sys/permission/${data.id}`, data)

// 删除权限
export const delPermissionRequest = (id) => request.delete(`/sys/permission/${id}`)

// 获取权限详情
export const getPermissionDetailRequest = (id) => request.get(`/sys/permission/${id}`)
